Optimal. Leaf size=64 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right ) (A c d-a B e)}{\sqrt{a} c^{3/2}}+\frac{\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac{B e x}{c} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.109265, antiderivative size = 64, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right ) (A c d-a B e)}{\sqrt{a} c^{3/2}}+\frac{\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac{B e x}{c} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*(d + e*x))/(a + c*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{e \int B\, dx}{c} + \frac{\left (A e + B d\right ) \log{\left (a + c x^{2} \right )}}{2 c} + \frac{\left (A c d - B a e\right ) \operatorname{atan}{\left (\frac{\sqrt{c} x}{\sqrt{a}} \right )}}{\sqrt{a} c^{\frac{3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(e*x+d)/(c*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.107701, size = 65, normalized size = 1.02 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right ) (a B e-A c d)}{\sqrt{a} c^{3/2}}+\frac{\log \left (a+c x^2\right ) (A e+B d)}{2 c}+\frac{B e x}{c} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*(d + e*x))/(a + c*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 78, normalized size = 1.2 \[{\frac{Bex}{c}}+{\frac{\ln \left ( c{x}^{2}+a \right ) Ae}{2\,c}}+{\frac{\ln \left ( c{x}^{2}+a \right ) Bd}{2\,c}}+{dA\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}}-{\frac{aBe}{c}\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(e*x+d)/(c*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.276063, size = 1, normalized size = 0.02 \[ \left [-\frac{{\left (A c d - B a e\right )} \log \left (-\frac{2 \, a c x -{\left (c x^{2} - a\right )} \sqrt{-a c}}{c x^{2} + a}\right ) -{\left (2 \, B e x +{\left (B d + A e\right )} \log \left (c x^{2} + a\right )\right )} \sqrt{-a c}}{2 \, \sqrt{-a c} c}, \frac{2 \,{\left (A c d - B a e\right )} \arctan \left (\frac{\sqrt{a c} x}{a}\right ) +{\left (2 \, B e x +{\left (B d + A e\right )} \log \left (c x^{2} + a\right )\right )} \sqrt{a c}}{2 \, \sqrt{a c} c}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.6361, size = 212, normalized size = 3.31 \[ \frac{B e x}{c} + \left (\frac{A e + B d}{2 c} - \frac{\sqrt{- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right ) \log{\left (x + \frac{A a e + B a d - 2 a c \left (\frac{A e + B d}{2 c} - \frac{\sqrt{- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right )}{- A c d + B a e} \right )} + \left (\frac{A e + B d}{2 c} + \frac{\sqrt{- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right ) \log{\left (x + \frac{A a e + B a d - 2 a c \left (\frac{A e + B d}{2 c} + \frac{\sqrt{- a c^{3}} \left (- A c d + B a e\right )}{2 a c^{3}}\right )}{- A c d + B a e} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(e*x+d)/(c*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.277415, size = 80, normalized size = 1.25 \[ \frac{B x e}{c} + \frac{{\left (B d + A e\right )}{\rm ln}\left (c x^{2} + a\right )}{2 \, c} + \frac{{\left (A c d - B a e\right )} \arctan \left (\frac{c x}{\sqrt{a c}}\right )}{\sqrt{a c} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + a),x, algorithm="giac")
[Out]